package com.viphuli.common;

import android.os.Environment;

import com.viphuli.app.R;

public class AppConfig {
	
	/** 数据库版本 */
	public static final int DB_VERSION;
	
	/** 数据库名称 */
	public static final String DB_NAME;
	
	/** 应用缓存根路径 */
	public static final String ROOT_CACHE_PATH;
	
	/** 应用缓存目录名 */
	public static final String APP_CACHE_NAME;
	
	/** 图片缓存路径 */
	public static final String IMAGE_CACHE_PATH;
	
	/** 接口domain */
	public static final String API_DOMAIN;
	
	/** 接口路径 */
	public static final String API_PATH;
	

	static {
		
		DB_VERSION = MyApp.getInstance().getResources().getInteger(R.integer.db_version);
		DB_NAME = MyApp.getInstance().getResources().getString(R.string.db_name);
		ROOT_CACHE_PATH = Environment.getExternalStorageDirectory().getPath();
		APP_CACHE_NAME = MyApp.getInstance().getResources().getString(R.string.app_cache_name);
		IMAGE_CACHE_PATH = MyApp.getInstance().getResources().getString(R.string.image_cache_path);
		API_DOMAIN = MyApp.getInstance().getResources().getString(R.string.api_domain);
		API_PATH = MyApp.getInstance().getResources().getString(R.string.api_path);
		
	}
	
	
	
	
	
}
